package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 客户策略（新）
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_strategy")
@ApiModel(value="CrmStrategy对象", description="客户策略（新）")
public class CrmStrategy extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "策略名称")
    @TableField("strategy_name")
    private String strategyName;

    @ApiModelProperty(value = "策略编码")
    @TableField("strategy_code")
    private String strategyCode;

    @ApiModelProperty(value = "策略值")
    @TableField("strategy_val")
    private String strategyVal;

    @ApiModelProperty(value = "策略类型")
    @TableField("strategy_type")
    private String strategyType;

    @ApiModelProperty(value = "辅助值")
    @TableField("auxiliary_value")
    private String auxiliaryValue;

    @ApiModelProperty(value = "公司ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人名称")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private Date createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private Date updateDate;

    @ApiModelProperty(value = "状态(0:正常 1:删除 2：停用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "用户名")
    @TableField("user_names")
    private String userNames;
}
